@ Title: 2numero            		                               Filename:TextoCosola.s
@ Author: Hernandez Leon Diego Kevin                     	         Date: 26-abril-2017
@ Description: 2numero

.LC0:
        .ascii  "Introduzca n\303\272mero 1:\000"
.LC1:
        .ascii  "%d\000"
.LC2:
        .ascii  "Introduzca n\303\272mero 2:\000"
.LC3:
        .ascii  "Introduzca n\303\272mero 3:\000"
.LC4:
        .ascii  "PAUSE\000"
main:
        stmfd   sp!, {fp, lr}
        add     fp, sp, #4
        sub     sp, sp, #16
        ldr     r0, .L10
        bl      printf
        sub     r3, fp, #8
        ldr     r0, .L10+4
        mov     r1, r3
        bl      scanf
        ldr     r0, .L10+8
        bl      printf
        sub     r3, fp, #12
        ldr     r0, .L10+4
        mov     r1, r3
        bl      scanf
        ldr     r0, .L10+12
        bl      printf
        sub     r3, fp, #16
        ldr     r0, .L10+4
        mov     r1, r3
        bl      scanf
        ldr     r2, [fp, #-8]
        ldr     r3, [fp, #-12]
        cmp     r2, r3
        bge     .L2
        ldr     r2, [fp, #-8]
        ldr     r3, [fp, #-16]
        cmp     r2, r3
        bge     .L2
        ldr     r2, [fp, #-12]
        ldr     r3, [fp, #-16]
        cmp     r2, r3
        bge     .L3
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        b       .L5
.L3:
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        b       .L5
.L2:
        ldr     r2, [fp, #-12]
        ldr     r3, [fp, #-8]
        cmp     r2, r3
        bge     .L6
        ldr     r2, [fp, #-12]
        ldr     r3, [fp, #-16]
        cmp     r2, r3
        bge     .L6
        ldr     r2, [fp, #-8]
        ldr     r3, [fp, #-16]
        cmp     r2, r3
        bge     .L7
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        b       .L5
.L7:
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        b       .L5
.L6:
        ldr     r2, [fp, #-16]
        ldr     r3, [fp, #-8]
        cmp     r2, r3
        bge     .L5
        ldr     r2, [fp, #-16]
        ldr     r3, [fp, #-12]
        cmp     r2, r3
        bge     .L5
        ldr     r2, [fp, #-8]
        ldr     r3, [fp, #-12]
        cmp     r2, r3
        bge     .L9
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        b       .L5
.L9:
        ldr     r3, [fp, #-16]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-12]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
        ldr     r3, [fp, #-8]
        ldr     r0, .L10+4
        mov     r1, r3
        bl      printf
.L5:
        ldr     r0, .L10+16
        bl      system
        mov     r3, #0
        mov     r0, r3
        sub     sp, fp, #4
        ldmfd   sp!, {fp, pc}
.L10:
        .word   .LC0
        .word   .LC1
        .word   .LC2
        .word   .LC3
        .word   .LC4
